package com.example.luozizhao.eprxdemo.net.bean;


import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * 用于建立好友表的类
 *
 * @author ${user}
 * @version [版本号]
 * @date ${date}
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Table(name = "l_conacts")
public class ConactsBean implements ISelectItem, Serializable {

    private static final long serialVersionUID = 1397198426249226402L;

    // 用户id
    @Column(isId = true, name = "uid", autoGen = false)
    private Integer uid;

    // 用户姓名
    @Column(name = "uname")
    private String uname;

    // 用户头像地址
    @Column(name = "avatar")
    private String avatar;
    
    @Column(name = "org_id")
    private Integer orgId;
    
    @Column(name = "org_type")
    private Integer orgType;

    @Column(name = "job_id")
    private Integer jobId;

    @Column(name = "job_name")
    private String jobName;
    
    @Column(name = "role_type")
    private Integer roleType;

    @Column(name = "org_name")
    private String orgName;
    
    @Column(name = "pid")
    private Integer pid;
    
    @Column(name = "pname")
    private String pname;
    
    @Column(name = "im_name")
    private String imName;

    @Column(name = "mobile")
    private String mobile;
    
    /** 是否选中 */
    private transient boolean isChecked;
    
    private transient String phoneticize;
    
    private transient String sortLetters;
    
    public ConactsBean() {
    }

    public ConactsBean(Integer uid, String uname, String avatar) {
        this.uid = uid;
        this.uname = uname;
        this.avatar = avatar;
    }
    
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getOrgType() {
        return orgType;
    }

    public void setOrgType(Integer orgType) {
        this.orgType = orgType;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getImName() {
        return imName;
    }

    public void setImName(String imName) {
        this.imName = imName;
    }

    @Override
    public boolean isChecked() {
        return this.isChecked;
    }

    @Override
    public void setChecked(boolean isChecked) {
        this.isChecked = isChecked;
    }
    
    @Override
    public int getId() {
        return uid;
    }

    @Override
    public void setId(int id) {
        this.uid = id;
    }

    @Override
    public void setName(String name) {
        this.uname = name;
    }

    @Override
    public String getName() {
        return this.uname;
    }

    @Override
    public String getSortLetters() {
        return this.sortLetters;
    }

    @Override
    public void setSortLetters(String sortLetters) {
        this.sortLetters = sortLetters;
    }

    @Override
    public String getPhoneticize() {
        return this.phoneticize;
    }

    @Override
    public void setPhoneticize(String phoneticize) {
        this.phoneticize = phoneticize;
    }
    
    @Override
    public String toString() {
        return "ConactsBean [uid=" + uid + ", uname=" + uname + ", avatar=" + avatar + ", orgId=" + orgId + ", orgType="
                + orgType + ", jobName=" + jobName + ", roleType=" + roleType + ", orgName=" + orgName + ", pid=" + pid
                + ", pname=" + pname + ", imName=" + imName + "]";
    }
    
}
